@charset "UTF-8";
@import "_general.scss";

.shopping-head{
    font-size: 12px;
    border-bottom: 2px solid #ff6700;
    background: #fff;
    color: #b0b0b0;
    position: relative;
    z-index: 20;
    height: 100px;
    .container{
        width: 1226px;
        height: 100%;
        margin: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;        
        .logo{
            display: flex;
            .img{
                width: 48px;
                height: 48px;
                background: url(https://s02.mifile.cn/assets/static/image/logo-mi2.png) no-repeat;
                background-size: 100% 100%;
            }
            .title{
                line-height: 48px;
                margin-bottom: 0;
                font-size: 28px;
                color: black;
                margin-left: 40px;
            }
            .caption{
                float: left;
                height: 20px;
                line-height: 20px;
                margin-top: 20px;
                margin-left: 15px;
                color: #757575;
            }
        }
    }
    .login-status{
        a{
            color: #757575;
            font-size: 12px;
            &:hover{
                color: $txtColor;
            }
        }
    }
}
.goods-content{
    width: 100%;
    background: #f5f5f5;
    box-sizing: border-box;
    .goods-hide{
        display: block;
        .goods-empty{
            display: none;
            width: 1226px;
            height: 100%;
            padding: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            .bg{
                height: 273px;
                padding-left: 558px;
                background: url(https://cdn.cnbj1.fds.api.mi-img.com/staticsfile/cart/cart-empty.png) no-repeat 124px 0;
                color: #b0b0b0;
                overflow: hidden;
            }
            .caption{
                h2{
                    margin: 70px 0 0 0;
                    color: #b0b0b0;
                    font-size: 24px;
                }
                .main-btn{
                    margin-top: 15px;
                    width: 170px;
                    height: 48px;
                    line-height: 48px;
                    background: #ff6700;
                    border-color: #ff6700;
                    border: none;
                    color: #fff;
                    @include transition(.3s);
                    &:hover{
                        cursor: pointer;
                        background-color: #f25807;
                        border-color: #f25807;
                        color: #fff;
                    }
                }
            }
        }
    }
    .goods-show{
        display: none;
        width: 1226px;
        margin: auto;
        padding: 40px;
        .list-goods{
            background-color: white;
            width: 100%;
            &>li{
                width: 100%;
                border-bottom: 1px solid rgb(224, 224, 224);
                &:last-child{
                    border: none;
                }
                .goods-detail-list{
                    &>li{
                        font-weight: 600; 
                    }
                    .goods-name{
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        div{
                            width: 80px;
                            height: 80px;
                            box-sizing: border-box;
                            img{
                                width: 100%;
                                height: 100%;
                            }
                        }
                        span{
                            margin-left: 40px;
                            width: 100%;
                            text-align: left;
                        }
                    }
                    .number{
                        div{
                            width: 70%;
                            height: 38px;
                            margin: auto;
                            border:1px solid rgb(224, 224, 224);
                            display: flex;
                            justify-content: space-between;
                            input{
                                outline: none;
                                border:none;
                                height: 100%;
                                line-height: 100%;
                                background-color: white;
                                color: gray;
                                font-size: 18px;
                            }
                            .reduce{
                                width: 25%;
                                @include transition(.3s);
                                &:hover{
                                    cursor: pointer;
                                    background-color: #E0E0E0;
                                }
                            }
                            .goods-number{
                                width: 50%;
                                text-align: center;
                            }
                            .add{
                                width: 25%;
                                @include transition(.3s);
                                &:hover{
                                    cursor: pointer;
                                    background-color: #E0E0E0;
                                }
                            }
                        }
                    }
                    .subtotal{
                        color: $txtColor;
                    }
                    .operation{
                        span{
                            display: inline-block;
                            width: 24px;
                            height: 24px;
                            line-height: 20px;
                            border-radius: 12px;
                            color: #757575;
                            font-size: 16px;
                            @include transition(.3s);
                            &:hover{
                                cursor: pointer;
                                background-color: $cmnColor;
                                color: white;
                            }
                        }
                    }
                }
                .goods-detail{
                    padding: 20px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    li:nth-child(n+2){
                        text-align: center;
                    }
                    li{
                        font-size: 14px;
                    }
                    .change{
                        width: 20px;
                        height: 20px;
                        vertical-align: middle;
                    }
                    .all-changed{
                        flex: 0.1;
                    }
                    .goods-name{
                        flex: 0.4;
                    }
                    .unit-price{
                        flex: 0.1;
                    }
                    .number{
                        flex: 0.2;
                    }
                    .subtotal{
                        flex: 0.1;
                    }
                    .operation{
                        flex: 0.1;
                    }
                }
            }
        }
        .settlement{
            width: 100%;
            padding: 15px;
            background-color: white;
            margin-top: 30px;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .amount{
                a{
                    font-size: 16px;
                    color: #757575;
                    @include transition(.3s);
                    padding: 0 15px;
                    border-right: 1px solid rgb(224, 224, 224);
                    &:hover{
                        color: #ff6700;
                    }
                }
                .hint{
                    font-size: 17px;
                    color: #757575;
                    padding:0 15px;
                    span{
                        padding:0 2px;
                        color: #ff6700;
                    }
                }
            }
            .btn{
                height: 100%;
                display: flex;
                .hint{
                    color: #ff6700;
                    span{
                        font-size: 32px;
                        margin: 0 5px;
                    }
                }
                .submit{
                    width: 200px;
                    height: 48px;
                    line-height: 48px;
                    font-size: 18px;
                    margin-left: 50px;
                    text-align: center;
                    background-color: #ff6700;
                    color: white;
                    &:hover{
                        cursor: pointer;
                        background-color: #f25807;
                        border-color: #f25807;
                        color: #fff;
                    }
                }
            }
        }
    }
}